﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CommonSite.Areas.API.Models
{
    public class Node
    {
        public string UserId { get; set; }
        public string OrgId { get; set; }
        public string PositionId { get; set; }

        public string UserName { get; set; }
        public string Org { get; set; }
        public string Position { get; set; }
    }

    public class ApprovalUser 
    {
        public string UserId { get; set; }
        public string UserName { get; set; }
    }

    public class _Node
    {
        // 1 or 2
        public int Action { get; set; }

        public string UserId { get; set; }
        public string OrgId { get; set; }
        public string PositionId { get; set; }
        public string RoleId { get; set; }

        public string UserName { get; set; }
        public string Org { get; set; }
        public string Position { get; set; }
        public string Role { get; set; }

        public bool? RoleInDept { get; set; }

        // used when action is 2
        public List<ApprovalUser> Argument { get; set; }

        public string Name { get; set; }
    }
}